package jsyf.oa.dao.apply;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import jsyf.oa.entity.apply.MoneyPayerEntity;
import jsyf.oa.idao.BaseDao;
import jsyf.oa.ientity.IBaseEntity;
import org.springframework.stereotype.Repository;

/**
 * Created by Lenovo on 2017/12/26.
 */
@Repository
public class MoneyPayerDao extends BaseDao {
    public MoneyPayerDao() {
        this.iBaseEntity = new MoneyPayerEntity();
    }

    @Override
    public IBaseEntity convertJson2Entity(JSONObject json) {
        return JSON.toJavaObject(json, MoneyPayerEntity.class);
    }
}
